package com.yzf.enterprise.framework.aspectj.service;

import com.yzf.enterprise.framework.aspectj.bo.LogBO;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 *
 * @author wangzhen
 * @since 2020-03-26
 */
@Slf4j
@Service
public class LogService {
    private static final Logger logger = LoggerFactory.getLogger(LogService.class);

    public boolean save(LogBO logBO){
        logger.info("ip地址：{},创建时间：{},调用方法名：{},参数：{},返回值：{}",
                logBO.getIp(),logBO.getCreateDate(),logBO.getMethodName(),logBO.getParams(),logBO.getResult());
        return true;
    }
}
